06. Grid Cells

Grid Cells

In this 3x3 two-dimensional grid map, how many obstacles exist? And how many combinations of maps can be formed?

1 0 1
0 1 0
1 0 1

SOLUTION: **Obstacles=** 5, **Combinations=** 512